package net.zjitc.controller;

import net.zjitc.pojo.Department;
import net.zjitc.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("department")
public class DepartmentController {
    @Autowired
    DepartmentService departmentService;
    @RequestMapping("/findAll")
    public String findAll(){
        List<Department> list = departmentService.findAll();
        System.out.println(list);
        return null;
    }
}
